package edu.uaskl.jqf.model.gates;

import edu.uaskl.jqf.model.gates.util.BaseGate;
import edu.uaskl.jqf.model.matrix.MatrixComplex;

public class ControlledNot extends BaseGate {
    public static final MatrixComplex size4 = new ControlledU(Not.size2).getInstance();

    @Override
    public MatrixComplex getInstance() {
        return size4;
    }

    @Override
    public MatrixComplex getSize(final int size) {
        if (size == 4)
            return size4;
        throw new IllegalArgumentException("Size not supported at the moment");
    }

}
